<!--
 * @Description: 传送组件
 * @Author: dh
 * @Date: 2022-01-21 13:41:19
 * @LastEditors: dh
 * @LastEditTime: 2022-11-29 14:35:31
-->
<template>
	<div id="box"></div>
	<teleport to="#box"> 这些内容将被加载到全局的#box </teleport>
</template>

<script lang="ts">
import { defineComponent } from 'vue';

export default defineComponent({
	setup() {
		return {};
	},
});
</script>

<style lang="scss" scoped>
#box {
	color: $red;
}
</style>
